<?php

return [
	'system' => ['errCode' => 1, 'message' => '系统错误'],
	
	'invalidParameter' => ['errCode' => 2, 'message' => '参数错误'],
	
	'database' => ['errCode' => 3, 'message' => '数据库错误'],

	'wechat' => [
		'invalid' => ['errCode' => 4, 'message' => '微信错误信息'],
		],

	'notFound' => ['errCode' => 404, 'message' => '页面未找到'],

	'user' => [
		'notFound' => ['errCode' => 10001, 'message' => '用户未找到'],
		'userInfo' => [
			'add' => ['errCode' => 11001, 'message' => '添加用户信息出错'],
			'notFound' => ['errCode' => 11002, 'message' => '用户信息未找到'],
			'update' => ['errCode' => 11003, 'message' => '更新用户信息出错'],
		'logout' => ['errCode' => 10002, 'message' => '用户已退出'],
		],
		'admin' => [
			'auth' => ['errCode' => 12001, 'message' => '管理员权限不足'],
			'info' => ['errCode' => 12002, 'message' => '添加管理员失败'],
			'notFound' => ['errCode' => 12003, 'message' => '管理员未找到'],
			'delete' => ['errCode' => 12004, 'message' => '不能删除正在使用的账号'],
			'password' => ['errCode' => 12005, 'message' => '原密码错误'],
			'login' => ['errCode' => 12006, 'message' => '账号或密码错误'],
			'user' => ['errCode' => 12007, 'message' => '不是管理员']
		],
		'role' => [
			'notFound' => ['errCode' => 13001, 'message' => '角色未找到'],
		],
	],

	'device' => [
		'bind' => ['errCode' => 20001, 'message' => '绑定出错'],
		'notConnect' => ['errCode' => 20002, 'message' => '设备离线'],
		'haveBind' => ['errCode' => 20003, 'message' => '已绑定设备'],
		'notFound' => ['errCode' => 20004, 'message' => '设备不存在'],
		'unbind' => ['errCode' => 20005, 'message' => '未绑定设备'],
		'powerOff' => ['errCode' => 20006, 'message' => '设备已关机'],
		'command' => ['errCode' => 20007, 'message' => '指令不正确'],

		'type' => [
			'notFound' => ['errCode' => 21001, 'message' => '设备类型不存在'],
			'notMatch' => ['errCode' => 21002, 'message' => '设备与设备类型不符合']
		],

	],
];